package com.pig4cloud.mall.product.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 商品评价表
 *
 * @author fangyu
 * @date 2020-12-26 23:41:08
 */
@Data
@TableName("pms_comment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "商品评价表")
public class Comment extends Model<Comment> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long productId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String memberNickName;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String productName;
    /**
     * 评价星数：0->5
     */
    @ApiModelProperty(value="评价星数：0->5")
    private Integer star;
    /**
     * 评价的ip
     */
    @ApiModelProperty(value="评价的ip")
    private String memberIp;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private LocalDateTime createTime;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer showStatus;
    /**
     * 购买时的商品属性
     */
    @ApiModelProperty(value="购买时的商品属性")
    private String productAttribute;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer collectCount;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer readCount;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String content;
    /**
     * 上传图片地址，以逗号隔开
     */
    @ApiModelProperty(value="上传图片地址，以逗号隔开")
    private String pics;
    /**
     * 评论用户头像
     */
    @ApiModelProperty(value="评论用户头像")
    private String memberIcon;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Integer replayCount;
    }
